<?php

$local = '/www/wwwroot/xiaopengbest.cn';

//	shell_exec("cd /your/git/dir ; sudo -u www-data git pull 2<&1");
echo shell_exec("cd {$local} && git pull 2>&1");
die("done " . date('Y-m-d H:i:s', time()));